package com.onlinevideo.entity;

import java.util.ArrayList;
import java.util.List;

public class RoleAuthorityDTO {
    private Long id ;

    private Role role ;

    private Authority authority ;

    public RoleAuthorityDTO() {
        role =new Role();

        authority = new Authority();
    }

    public RoleAuthorityDTO(Role role, Authority authority) {
        this.role = role;
        this.authority = authority;
    }

    public RoleAuthorityDTO(Long id, Role role, Authority authority) {
        this.id = id;
        this.role = role;
        this.authority = authority;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public Authority getAuthority() {
        return authority;
    }

    public void setAuthority(Authority authority) {
        this.authority = authority;
    }

    @Override
    public String toString() {
        return "RoleAuthorityDTO{" +
                "id=" + id +
                ", role=" + role +
                ", authority=" + authority +
                '}';
    }
}
